import request from "@/utils/request";

// 登录
export const login = (data: UserType.LoginForm) =>
  request.post("/admin/login", data);

//查询登陆状态
export const getLoginState = () => request.get("/admin/login");

// 退出方法
export const logout = () => request.delete("/admin/login");

// 获取所有微信用户
export const getWxusers = () => request.get("/admin/wx_user");

// 修改微信用户权限
export const updateWxusers = (data: any) => request.put("/admin/wx_user", data);
